package com.iv.durian.cloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Builder
@ApiModel(value="用户对象")
public class UserVO {
    @ApiModelProperty(value="用户ID")
    private Integer id;

    @ApiModelProperty(value="用户电话")
    private String mobile;

    @ApiModelProperty(value="用户Email")
    private String email;

    @ApiModelProperty(value="用户状态：-1 禁用 0 正常")
    private int status;

    @ApiModelProperty(value="用户记录建立时间")
    @JsonProperty("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value="用户记录最后更新时间")
    @JsonProperty("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value="学员列表")
    private List<StudentVO> students = new ArrayList<StudentVO>();

}
